<?php
	require_once(dirname(__FILE__)."/include/acmer_data.php");
?>
<style type="text/css">
/* <![CDATA[ */
ol, ul { list-style: none; }
a img { border:none; }
h1, h2, h3 { font-weight: 300; color: black; }
h1 { font-size: 21px; line-height: 26px; margin: 18px 0 2px 0; }
h2 { font-size: 18px; line-height: 22px; margin: 14px 0 8px 0; }
h3 { font-size: 18px; line-height: 18px; margin: 13px 0 6px 0; }
code { font-family: "Menlo", "Monaco", monospace; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.clear { clear: both; }
.text h1:first-child { border-right: 0; }
.grade { min-height: 10px !important; }
.grade h2 { margin-left: 5px; margin-top: 35px; border-bottom: 1px solid #ccc; }
.grade .registered { margin: 0; }
.grade .registered li { float:left;font-size:14px;margin: 10px 10px 10px 10px; height: 200px;}
.grade .registered li a { display: block; width: 60px; text-align: center; }
.grade .unregistered { margin: 0; }
.grade .unregistered li { float: left; width: 60px; margin: 10px; text-align: center; }
.size {width:<?php echo $img_acmer_width; ?>px;height: <?php echo $img_acmer_height; ?>px;}
/* ]]> */
</style>

<div class="text columns home nosidebar">
<h1 style="text-align:center;padding-right:50px ">队员风采</h1>
<?php
	for ($i = $end_y; $i >= $begin_y; --$i){
		if (count($PageArray[$i]) <= 0)
			continue;
		echo "<section class=\"grade\">";
		echo "<h2>".$i."级</h2>";
		echo "<p class=\"clear\"></p><ul class=\"registered\">";
		foreach($PageArray[$i] as $Object){
?>
<li>
<center>
<div style = "padding:10px 20px 0px 10px; background-color: #eeeeff;">
<a href="./userinfo.php?user=<?php echo urlencode($Object->username); ?>" ><img src="<?php if($Object->imagesrc == 'none') echo 'images/no.jpg'; else echo $Object->imagesrc; ?>" class="size" /></a><br />
<a href="./userinfo.php?user=<?php echo urlencode($Object->username); ?>" ><?php echo htmlspecialchars($Object->nickname); ?></a><br />
<p style="text-align: center; margin:0px 0px 0px 0px; padding: 0px 0px 10px 0px;"><?php echo $Object->award; ?></p>
</div>
</center>
</li>
<?php
		}
		echo "</ul><p class=\"clear\"></p></section>";
	}
?>
</div>
